package com.适配器模式2.类适配器;

/**
 * 日本友人来看电视，那我们就切换到日本播放器
 */
public class JPMoviePlayerAdapter extends Zh_JpTranslate implements Player{

    //被适配的对象
    private Player targer;

    public JPMoviePlayerAdapter(Player targer) {
        this.targer=targer;
    }

    @Override
    public String play() {
        String playContent = targer.play();
        //转换字幕
        return translate(playContent);
    }
}
